<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="css/base.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
	$(function(){  
		//准备数据，准备保存
		$('.submit').click(function(){
			var flag = true;
			var password = $('.password');
			if (!password.val()) {
				password.focus();
				password.next().html("输入值不能为空");
				flag = false;
				return false;
			}	
			password.next().html("");
			
			if (flag) {
				//修改学生信息
					$.ajax({
						url:"updateUser_update.action",		
						type:"post",
						data:{
							"password":password.val(),
						},
						dataType:"json",
						success:function(data){
							if ('EC001' == data.code){
							 	alert("修改信息成功");
								window.location.href="login_preLogin.action";
							} else {
								alert("修改信息失败，请重试!");
							}
						}
					})
				
			}
			 
		});
	});
</script>


</head>

<body>
		<div class="main_right_top">您现在所在位置 > <span>修改用户信息</span></div>
		<div class="main_right_body"> 
        <div class="body_content">
        	<div class="add_xm_all">
            	<h1 class="add_xm_top">
                	基本信息
                </h1><!--add_xm_top-->
            	<div class="add_xm_form">
                	<ul>
                        <li>
                        	<label>密码：</label>
                            <input type="password" class="password"  name="password"/>
                            <span class="error_text"></span>			
                        </li>
                     </ul>
                    <div class="regist_btn">
                        <input type="submit" value="提交" class="submit" />
                        <a class="return_btn">返回</a>
                    </div>
                </div><!--add_xm_form-->
            </div><!--add_xm_all-->
       </div>	
	</div> <!--main_right_body-->
	
</body>
</html>